package com.codeZ.VisitiorPattern;

/**
 * 具体访问者类
 *
 * @author codeZhang
 * @Date 2024/8/29 17:09
 */
public class ConcreteVisitor implements Visitor{
    @Override
    public void visit(ConcreteElementA elementA) {
        System.out.println("ConcreteVisitor visit ConcreteElementA");
    }

    @Override
    public void visit(ConcreteElementB elementB) {
        System.out.println("ConcreteVisitor visit ConcreteElementB");
    }
}
